home *** CD-ROM | disk | FTP | other *** search
/ Mission to McDonaldLand / Mission To McDonaldLand.iso / mcdon.dxr / 00002_Script_McDonalds < prev    next >
Text File  |  1998-10-25  |  4KB  |  119 lines

  1. on enterFrame
  2.   global heading
  3.   global move
  4.   global updown
  5.   global silly
  6.   global nomore
  7.   global restoration
  8.   global castrestore
  9.   global CStop
  10.   
  11.   if CStop = 1 then 
  12.     if the mouseH < the locH of sprite 30 then set the member of sprite 30 = "Left"
  13.     if the mouseH > the locH of sprite 30 then set the member of sprite 30 = "Right"
  14.     abort
  15.   end if
  16.   
  17.   if silly = 1 then
  18.     if the locH of sprite 30 < 100 or the locH of sprite 30 > 550 then
  19.       set silly = 0
  20.       puppetSound "off"
  21.       set the member of sprite 30 = "Right"
  22.     end if
  23.     
  24.     if the mouseH < the locH of sprite 30 then 
  25.       set the locH of sprite 30 = the locH of sprite 30 - 20
  26.       set the member of sprite 30 = "RocketL"
  27.     end if
  28.     if the mouseH > the locH of sprite 30 then 
  29.       set the locH of sprite 30 = the locH of sprite 30 + 20
  30.       set the member of sprite 30 = "RocketR"
  31.     end if
  32.     if the mouseV < the locV of sprite 30 then set the locV of sprite 30 = the locV of sprite 30 - 20
  33.     if the mouseV > the locV of sprite 30 and the locV of sprite 30 < 300 then set the locV of sprite 30 = the locV of sprite 30 + 20
  34.     if soundBusy(1) then set horrible = 1
  35.     else puppetSound "thruster"
  36.     abort
  37.   end if
  38.   
  39.   if the locV of sprite 30 < 270 then 
  40.     set the locV of sprite 30 = the locV of sprite 30 + 20
  41.     if the locV of sprite 30 > 269 then puppetSound "thump"
  42.     abort
  43.   end if
  44.   
  45.   
  46.   if the mouseV < 270 or the mouseH > the locH of sprite 30 - 20 and the mouseH < the locH of sprite 30 + 20 then
  47.     if heading = 1 then set the member of sprite 30 = "Left"
  48.     if heading = 2 then set the member of sprite 30 = "Right"
  49.     set move = 0
  50.   end if
  51.   
  52.   if the mouseH > the locH of sprite 30 + 19 and the mouseV > 270 then 
  53.     set the member of sprite 30 = "Walk Right"
  54.     set heading = 2
  55.     set move = 1
  56.     set the locH of sprite 30 = the locH of sprite 30 + 15
  57.   end if
  58.   
  59.   if the mouseH < the locH of sprite 30 - 19 and the mouseV > 270 then 
  60.     set the member of sprite 30 = "Walk Left"
  61.     set heading = 1
  62.     set move = 1
  63.     set the locH of sprite 30 = the locH of sprite 30 - 15
  64.   end if
  65.   
  66.   if the mouseV > the locV of sprite 30 and the mouseV < the locV of sprite 30 + 50 then 
  67.     if move = 0 and heading = 1 then set the member of sprite 30 = "Left"
  68.     if move = 0 and heading = 2 then set the member of sprite 30 = "Right"
  69.     set updown = 0
  70.   end if
  71.   
  72.   if the mouseV < the locV of sprite 30 then 
  73.     if the locV of sprite 30 > 300 then
  74.       if move = 0 and heading = 1 then set the member of sprite 30 = "Walk Left"
  75.       if move = 0 and heading = 2 then set the member of sprite 30 = "Walk Right"
  76.       set the locV of sprite 30 = the locV of sprite 30 - 5
  77.       set updown = 1
  78.     end if
  79.   end if
  80.   
  81.   if the mouseV > the locV of sprite 30 + 50 then 
  82.     if the locV of sprite 30 < 350 then
  83.       if move = 0 and heading = 1 then set the member of sprite 30 = "Walk Left"
  84.       if move = 0 and heading = 2 then set the member of sprite 30 = "Walk Right"
  85.       set the locV of sprite 30 = the locV of sprite 30 + 5
  86.       set updown = 1
  87.     end if
  88.   end if
  89.   
  90.   if the locH of sprite 30 > 500 then 
  91.     if updown = 0 then set the member of sprite 30 = "Right"
  92.     set the locH of sprite 30 = 500
  93.   end if
  94.   
  95.   if the locH of sprite 30 < 100 then 
  96.     if updown = 0 then set the member of sprite 30 = "Left"
  97.     set the locH of sprite 30 = 100
  98.   end if
  99. end
  100.  
  101. on rightMouseDown
  102.   global silly
  103.   global heading
  104.   global CStop
  105.   if CStop = 1 then abort
  106.   set silly = 1
  107. end
  108.  
  109. on rightMouseUp
  110.   global silly
  111.   global heading
  112.   set silly = 0
  113.   set the member of sprite 30 = "Right"
  114. end
  115.  
  116. on exitFrame
  117.   go the frame
  118. end
  119.